/*
  DHCP-based IP printer

 This sketch uses the DHCP extensions to the Ethernet library
 to get an IP address via DHCP and print the address obtained.
 using an Arduino Wiznet Ethernet shield.

 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13

 created 12 April 2011
 by Tom Igoe

 */

#include <Arduino.h>
#include "utilities.h"
#include "Atshaa/Shell.hpp"

Shell * shell;

void setup() {
  // start the serial library:
  Serial.begin(9600);
//  Serial.print("memoryFree=");
//  Serial.println(memoryFree());
  shell = new Shell();
  shell->setup();
}

void loop() {
  Serial.print("M=");
  Serial.println(memoryFree());
  shell->loop();
}

int main(void)
{
	init();

	setup();

	for (;;)
		loop();

	return 0;
}
